package br.com.fiap.arquivo;

/**
 * Created with IntelliJ IDEA.
 * User: gabriel.medina
 * Date: 02/10/12
 * Time: 16:43
 * To change this template use File | Settings | File Templates.
 */
public class MyNode {

    private String id;

    public String toString() {
        return getId();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MyNode)) return false;

        MyNode myNode = (MyNode) o;

        if (!id.equals(myNode.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }
}

